<h3><?php _e('Install Plugin');?></h3>
<?php foreach ($plugin_params_form->getFormValidationErrors() as $error):?>
<div class="stop">
  <p><?php _h($error);?></p>
</div>
<?php endforeach;?>
<?php form_tag('post', Sabai_URL::get('/plugin/install/' . $plugin_name));?>
<table class="vertical">
  <thead>
    <tr><td colspan="2"></td></tr>
  </thead>
  <tfoot>
    <tr><td colspan="2"><input type="submit" value="<?php _e('Submit');?>" /></td></tr>
  </tfoot>
  <tbody>
  <tr>
    <th><?php _e('Name');?></th>
    <td><?php _h($plugin_name);?></td>
  </tr>
  <tr>
    <th><?php _e('Version');?></th>
    <td><?php _h($plugin_version);?></td>
  </tr>
  <tr>
    <th><?php _e('Summary');?></th>
    <td><?php _h($plugin_summary);?></td>
  </tr>
  <tr>
    <th><?php _e('Description');?></th>
    <td></td>
  </tr>
  <tr>
    <th><?php _e('Options');?></th>
    <td>
      <dl>
<?php foreach($plugin_params_form->getElementNames() as $param_name):?>
        <dt><?php _h($plugin_params_form->getElementLabel($param_name));?></dt>
        <dd>
          <?php _h($plugin_params_form->printHTMLFor($param_name));?>
<?php   foreach ($plugin_params_form->getValidationErrorsFor($param_name) as $error):?>
         <div class="stop">
           <p><?php _h($error);?></p>
         </div>
<?php   endforeach;?>
       </dd>
<?php endforeach;?>
      </dl>
    </td>
  </tr>
  <tr>
    <th><?php _e('Active');?></th>
    <td><input type="checkbox" value="1" name="_active" <?php if($plugin_active):?>checked="checked"<?php endif;?>/></td>
  </tr>
  </tbody>
</table>
<?php form_tag_end();?>